import request from '../request'

// 获取用户信息
function getUserInfo(data) {
    return request.get('/attractions/attraction-management/userInfo', data)
}

// 公众号网页授权连接
function getRedirectUrl(data) {
    return request.get('/api/wechat/mp/getRedirectUrl', data)
}

// 微信网页授权登录
function login(data) {
    return request.post('/attractions/attraction-management/login', data)
}
// 游客列表
function listTourist(data) {
    return request.get('/attractions/attraction-management/listTourist', data)
}
// 添加游客
function addTourist(data) {
    return request.post('/attractions/attraction-management/addTourist', data)
}
// 删除游客
function deleteTourist(data) {
    return request.get('/attractions/attraction-management/deleteTourist', data)
}


export default {
    getUserInfo,
    getRedirectUrl,
    login,
    listTourist,
    addTourist,
    deleteTourist
}